<%@ page language="java" import="cn.yunhe.entity.Admin" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<html>
<head>
<title></title>
<style type="text/css">
body {
	background-image: url(pic/LeftBgroud.gif);
}

</style>
<link rel="stylesheet" href="../css/css.css" type="text/css"></link></head>

<body leftmargin="0" topmargin="0" >
  <table width="170" height="135" align="center" cellpadding="0" cellspacing="0" background="pic/msg.gif">
    <tr>
      <td width="170" height="64" valign="bottom" background="" class="menu_title"><table width="100%" height="21" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="80">&nbsp;</td>
          <td><a href="exitSystem.jsp" target="_parent"><strong>退出系统</strong></a></td>
        </tr>
        
      </table></td>
    </tr>
    <tr>
      <td width="170" align="center"><table width="100%" height="50" border="0" cellpadding="0" cellspacing="0">
        <tr>
          <td width="38%">&nbsp;</td>
          <%-- <% Admin admin=(Admin)session.getAttribute("admin"); %> --%>
          <td width="62%"><span class="red_9">&nbsp;&nbsp;<%-- <%=admin.getA_name() %> --%>${sessionScope.admin.a_name }</span></td>
        </tr>
        <tr>
          <td width="38%">&nbsp;</td>
          <c:choose>
          	<c:when test="${sessionScope.admin.a_flag.equals('0') }">
          		<td>&nbsp;<span class="red_9">&nbsp;&nbsp;<%-- <%=admin.getA_flag().equals("0")?"超级管理员":"普通管理员" %> --%>超级管理员</span></td>
          	</c:when>
          	<c:otherwise>
          		<td>&nbsp;<span class="red_9">&nbsp;&nbsp;<%-- <%=admin.getA_flag().equals("0")?"超级管理员":"普通管理员" %> --%>普通管理员</span></td>
          	</c:otherwise>
          </c:choose>
        </tr>
      </table></td>
    </tr>
  </table>
  
  <table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
  <tr align="center">
  	<td background="pic/bar.gif" valign="middle"><a href="admin/addtopic.jsp " target="main"><strong>添加主题</strong></a></td>
  </tr>
  </table>
  
  <table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
  <tr align="center">
  	<td background="pic/bar.gif" valign="middle"><a href="admin/ShowAllTopic" target="main"><strong>编辑主题</strong></a></td>
  </tr>
  </table>
  
  <table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
  <tr align="center">
  	<td background="pic/bar.gif" valign="middle"><a href="admin/SearchAllNews" target="main"><strong>查看新闻</strong></a></td>
  </tr>
  </table>
  
  <table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
  <tr align="center">
  	<td background="pic/bar.gif" valign="middle"><a href="admin/ShowAllTopic?flag=addNews" target="main"><strong>添加新闻</strong></a></td>
  </tr>
  </table>
  <table width="170" align="center" height="25" cellpadding="0" cellspacing="0" >
  <tr align="center">
  	<td background="pic/bar.gif" valign="middle"><a href="admin/EditSearchNews" target="main"><strong>编辑新闻</strong></a></td>
  </tr>
  </table>

</body>
</html>